
export default ({ request, moduleName }) => ({
  /**
   * @description 菜单列表  post /urcap/auth/menu
   */
  api_urcap_auth_menu({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/menu`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 菜单列表  cap/auth/menu/menuTree
   */
  api_urcap_auth_menuTree({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/menu/menuTree`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 菜单列表  /urcap/auth/menu/build
   */
  api_urcap_auth_menu_build({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/menu/build`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 菜单列表  /urcap/auth/menu/tree
   */
  api_urcap_auth_menu_tree({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/menu/tree`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 获取当前登录用户的菜单树  post /urcap/auth/index
   */
  api_urcap_auth_index({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/index`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 字典  /urcap/baseInfoAttrDict/queryList
   */
  api_urcap_baseInfoAttrDict_queryList({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/baseInfoAttrDict/queryList`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },
  /**
   * @description /urcap/auth/role
   */
  api_urcap_auth_role({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/role`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },
  /**
   * @description /urcap/auth/role/listAll
   */
  api_urcap_auth_role_listAll({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/role/listAll`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },
  /**
   * @description /urcap/auth/role/all
   */
  api_urcap_auth_role_all({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/role/all`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  // 用户管理
  /**
   * @description 用户列表 /urcap/auth/user
   */
  api_urcap_auth_user({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/user`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 用户新增 /urcap/auth/user
   */
  api_urcap_auth_user_post({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/user`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },
  /**
   * @description  /urcap/auth/user/getCurrentUser
   */
  api_urcap_auth_user_getCurrentUser({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/auth/user/getCurrentUser`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description /urcap/fileController/upload
   */
  api_urcap_fileController_upload({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/fileController/upload`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },
})
